<?php
namespace App\Traits;

use App\Models\FakeList;

Trait Trait43_44 {

    public function lightingDevice()
    {
        $data1 = [
            'name' => '照明A2 039',
            '设备状态' => '在线',
            '设备编号' => '文本标签',
            '安装位置' => '文本标签',
            '安装日期' => '文本标签',
            '品牌型号' => '万物互动智能照明开关',
        ];
        $data2 = [
            ['name' => '茶实验室', 'status' => '在线', 'onoff' => '开'],
            ['name' => 'XX科研室', 'status' => '离线', 'onoff' => '开'],
            ['name' => '茶实验室', 'status' => '在线', 'onoff' => '开'],
            ['name' => '502会议室', 'status' => '在线', 'onoff' => '开'],
            ['name' => '茶实验室', 'status' => '在线', 'onoff' => '关'],
            ['name' => '茶实验室', 'status' => '在线', 'onoff' => '关'],
            ['name' => '茶实验室', 'status' => '在线', 'onoff' => '关'],
            ['name' => '茶实验室', 'status' => '在线', 'onoff' => '关'],
            ['name' => '茶实验室', 'status' => '在线', 'onoff' => '关'],
        ];
        $data = [
            'detailInfo' => $data1,
            'detailList' => $data2
        ];
        $responseJson = [
            'code' => 200,
            'message' => '',
            'data' => $data
        ];
        return response()->json($responseJson);
    }

}
